package com.jcsz.gulimall.search.feign;

import com.jcsz.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @className: ProductFeignService
 * @author: 一把Po吉他
 * @date: 2022/11/5 15:25
 * @version: 1.0
 **/
@FeignClient("gulimall-product")
public interface ProductFeignService {
    @RequestMapping("/product/attr/info/{attrId}")
    public R info(@PathVariable("attrId") Long attrId);

    @RequestMapping("/product/brand/brand/infos")
    public R getBrandByIds(@RequestParam("brand") List<Long> ids);

    @RequestMapping("/product/category/info/{catId}")
    public R getCatelogTnfoById(@PathVariable("catId") Long catId);
}
